package com.baizhi.feign;

import com.baizhi.feign.rollback.CityRollBack;
import com.baizhi.po.CityPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "CITY", fallback = CityRollBack.class)
public interface FeignCity {

    @GetMapping("/cities/{id}")
    public CityPO queryById(@PathVariable("id") Long id);
}
